home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 1 / Cream of the Crop 1.iso / PROGRAM / DJEMU106.ARJ / E47.CC < prev    next >
C/C++ Source or Header  |  1992-04-07  |  404b  |  27 lines

  1. #include "emu.h"
  2. #include "rmov.h"
  3.  
  4. void emu_47()
  5. {
  6.   if (empty())
  7.     return;
  8.   if (modrm > 0277)
  9.   {
  10.     // fdiv st(i),st
  11.     reg t;
  12.     int i = modrm & 7;
  13.     if (empty(i))
  14.       return;
  15.     r_div(st(i), st(0), t);
  16.     r_mov(t, st(i));
  17.   }
  18.   else
  19.   {
  20.     // fdivr m64real
  21.     reg t, t2;
  22.     r_mov((double *)get_modrm(), t);
  23.     r_div(t, st(), t2);
  24.     r_mov(t2, st());
  25.   }
  26. }
  27.